package com.fuxin.mywiki.service;

import com.fuxin.mywiki.domain.Ebook;
import com.fuxin.mywiki.mapper.EbookMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EbookService {
  @Resource
  private EbookMapper EbookMapper;

  public List<Ebook> list() {
    // selectByExample 相当于sql的while条件
    return EbookMapper.selectByExample(null);
  }
}
